// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addBisheProject POST /api/bisheProject/add */
export async function addBisheProjectUsingPost(
  body: API.BisheProjectAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/bisheProject/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** doBisheProjectClick GET /api/bisheProject/click */
export async function doBisheProjectClickUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.doBisheProjectClickUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/bisheProject/click', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getTotalCount GET /api/bisheProject/count */
export async function getTotalCountUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseLong_>('/api/bisheProject/count', {
    method: 'GET',
    ...(options || {}),
  });
}

/** getClickNumTotalCount GET /api/bisheProject/count/clickNum */
export async function getClickNumTotalCountUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseLong_>('/api/bisheProject/count/clickNum', {
    method: 'GET',
    ...(options || {}),
  });
}

/** dayNewlyAddedBisheProject POST /api/bisheProject/day/newly/added */
export async function dayNewlyAddedBisheProjectUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseListDataGroupByDateDTO_>('/api/bisheProject/day/newly/added', {
    method: 'POST',
    ...(options || {}),
  });
}

/** deleteBisheProject POST /api/bisheProject/delete */
export async function deleteBisheProjectUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/bisheProject/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** downloadBisheProjectById GET /api/bisheProject/download */
export async function downloadBisheProjectByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.downloadBisheProjectByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<any>('/api/bisheProject/download', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** editBisheProject POST /api/bisheProject/edit */
export async function editBisheProjectUsingPost(
  body: API.BisheProjectEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/bisheProject/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getBisheProjectVOById GET /api/bisheProject/get/vo */
export async function getBisheProjectVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getBisheProjectVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBisheProjectVO_>('/api/bisheProject/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listBisheProjectByPage POST /api/bisheProject/list/page */
export async function listBisheProjectByPageUsingPost(
  body: API.BisheProjectQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageBisheProject_>('/api/bisheProject/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listBisheProjectVOByPage POST /api/bisheProject/list/page/vo */
export async function listBisheProjectVoByPageUsingPost(
  body: API.BisheProjectQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageBisheProjectVO_>('/api/bisheProject/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyBisheProjectVOByPage POST /api/bisheProject/my/list/page/vo */
export async function listMyBisheProjectVoByPageUsingPost(
  body: API.BisheProjectQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageBisheProjectVO_>('/api/bisheProject/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getBisheStatistics GET /api/bisheProject/statistics */
export async function getBisheStatisticsUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseBisheProjectStatisticsDTO_>('/api/bisheProject/statistics', {
    method: 'GET',
    ...(options || {}),
  });
}

/** updateBisheProject POST /api/bisheProject/update */
export async function updateBisheProjectUsingPost(
  body: API.BisheProjectUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/bisheProject/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getBisheProjectTagWordCloud GET /api/bisheProject/wordCloud/tag */
export async function getBisheProjectTagWordCloudUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListWordCloud_>('/api/bisheProject/wordCloud/tag', {
    method: 'GET',
    ...(options || {}),
  });
}
